home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-12-14 | 1.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4d 1e 63 6c 61 73 73 20 |........|M.class |
|00000010| 48 65 6c 6c 6f 57 65 62 | 20 65 78 74 65 6e 64 73 |HelloWeb| extends|
|00000020| 20 57 65 62 41 70 70 6c | 69 63 61 74 69 6f 6e 3b | WebAppl|ication;|
|00000030| 0d 0a 0d 0a 2f 2a 20 55 | 73 61 67 65 3a 0d 0a 54 |..../* U|sage:..T|
|00000040| 68 69 73 20 69 73 20 61 | 20 73 61 6d 70 6c 65 20 |his is a| sample |
|00000050| 77 65 62 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |web appl|ication,|
|00000060| 20 74 6f 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 | to demo|nstrate |
|00000070| 68 6f 77 20 74 6f 20 70 | 72 6f 67 72 61 6d 20 66 |how to p|rogram f|
|00000080| 6f 72 20 74 68 65 20 77 | 65 62 20 73 65 72 76 65 |or the w|eb serve|
|00000090| 72 2e 0d 0a 0d 0a 0d 0a | 5b 55 57 65 62 2e 57 65 |r.......|[UWeb.We|
|000000a0| 62 53 65 72 76 65 72 5d | 0d 0a 41 70 70 6c 69 63 |bServer]|..Applic|
|000000b0| 61 74 69 6f 6e 73 5b 30 | 5d 3d 22 55 57 65 62 2e |ations[0|]="UWeb.|
|000000c0| 48 65 6c 6c 6f 57 65 62 | 22 0d 0a 41 70 70 6c 69 |HelloWeb|"..Appli|
|000000d0| 63 61 74 69 6f 6e 50 61 | 74 68 73 5b 30 5d 3d 22 |cationPa|ths[0]="|
|000000e0| 2f 68 65 6c 6c 6f 22 0d | 0a 62 45 6e 61 62 6c 65 |/hello".|.bEnable|
|000000f0| 64 3d 54 72 75 65 0d 0a | 0d 0a 68 74 74 70 3a 2f |d=True..|..http:/|
|00000100| 2f 73 65 72 76 65 72 2e | 69 70 2e 61 64 64 72 65 |/server.|ip.addre|
|00000110| 73 73 2f 68 65 6c 6c 6f | 0d 0a 0d 0a 2a 2f 0d 0a |ss/hello|....*/..|
|00000120| 0d 0a 65 76 65 6e 74 20 | 51 75 65 72 79 28 57 65 |..event |Query(We|
|00000130| 62 52 65 71 75 65 73 74 | 20 52 65 71 75 65 73 74 |bRequest| Request|
|00000140| 2c 20 57 65 62 52 65 73 | 70 6f 6e 73 65 20 52 65 |, WebRes|ponse Re|
|00000150| 73 70 6f 6e 73 65 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |sponse).|.{...loc|
|00000160| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 20 20 20 |al int i|;.... |
|00000170| 20 4c 6f 67 28 22 48 65 | 6c 6c 6f 57 65 62 2e 51 | Log("He|lloWeb.Q|
|00000180| 75 65 72 79 22 29 3b 0d | 0a 0d 0a 09 69 66 28 52 |uery");.|....if(R|
|00000190| 65 71 75 65 73 74 2e 55 | 73 65 72 6e 61 6d 65 20 |equest.U|sername |
|000001a0| 21 3d 20 22 74 65 73 74 | 22 20 7c 7c 20 52 65 71 |!= "test|" || Req|
|000001b0| 75 65 73 74 2e 50 61 73 | 73 77 6f 72 64 20 21 3d |uest.Pas|sword !=|
|000001c0| 20 22 74 65 73 74 22 29 | 0d 0a 09 7b 0d 0a 09 09 | "test")|...{....|
|000001d0| 52 65 73 70 6f 6e 73 65 | 2e 46 61 69 6c 41 75 74 |Response|.FailAut|
|000001e0| 68 65 6e 74 69 63 61 74 | 69 6f 6e 28 22 48 65 6c |henticat|ion("Hel|
|000001f0| 6c 6f 57 65 62 22 29 3b | 0d 0a 09 09 72 65 74 75 |loWeb");|....retu|
|00000200| 72 6e 3b 0d 0a 09 7d 09 | 09 0d 0a 0d 0a 09 73 77 |rn;...}.|......sw|
|00000210| 69 74 63 68 28 52 65 71 | 75 65 73 74 2e 55 52 49 |itch(Req|uest.URI|
|00000220| 29 0d 0a 09 7b 0d 0a 09 | 63 61 73 65 20 22 2f 66 |)...{...|case "/f|
|00000230| 6f 72 6d 2e 68 74 6d 6c | 22 3a 0d 0a 09 09 52 65 |orm.html|":....Re|
|00000240| 73 70 6f 6e 73 65 2e 53 | 65 6e 64 54 65 78 74 28 |sponse.S|endText(|
|00000250| 22 3c 66 6f 72 6d 20 6d | 65 74 68 6f 64 3d 70 6f |"<form m|ethod=po|
|00000260| 73 74 20 61 63 74 69 6f | 6e 3d 73 75 62 6d 69 74 |st actio|n=submit|
|00000270| 2e 68 74 6d 6c 3e 22 29 | 3b 0d 0a 09 09 52 65 73 |.html>")|;....Res|
|00000280| 70 6f 6e 73 65 2e 53 65 | 6e 64 54 65 78 74 28 22 |ponse.Se|ndText("|
|00000290| 3c 69 6e 70 75 74 20 74 | 79 70 65 3d 65 64 69 74 |<input t|ype=edit|
|000002a0| 20 6e 61 6d 65 3d 54 65 | 73 74 45 64 69 74 3e 22 | name=Te|stEdit>"|
|000002b0| 29 3b 0d 0a 09 09 52 65 | 73 70 6f 6e 73 65 2e 53 |);....Re|sponse.S|
|000002c0| 65 6e 64 54 65 78 74 28 | 22 3c 70 3e 3c 73 65 6c |endText(|"<p><sel|
|000002d0| 65 63 74 20 6d 75 6c 74 | 69 70 6c 65 20 6e 61 6d |ect mult|iple nam|
|000002e0| 65 3d 73 65 6c 65 63 74 | 65 72 3e 22 29 3b 0d 0a |e=select|er>");..|
|000002f0| 09 09 52 65 73 70 6f 6e | 73 65 2e 53 65 6e 64 54 |..Respon|se.SendT|
|00000300| 65 78 74 28 22 3c 6f 70 | 74 69 6f 6e 20 76 61 6c |ext("<op|tion val|
|00000310| 75 65 3d 5c 22 6f 6e 65 | 5c 22 3e 4e 75 6d 62 65 |ue=\"one|\">Numbe|
|00000320| 72 20 4f 6e 65 22 29 3b | 0d 0a 09 09 52 65 73 70 |r One");|....Resp|
|00000330| 6f 6e 73 65 2e 53 65 6e | 64 54 65 78 74 28 22 3c |onse.Sen|dText("<|
|00000340| 6f 70 74 69 6f 6e 20 76 | 61 6c 75 65 3d 5c 22 74 |option v|alue=\"t|
|00000350| 77 6f 5c 22 3e 4e 75 6d | 62 65 72 20 54 77 6f 22 |wo\">Num|ber Two"|
|00000360| 29 3b 0d 0a 09 09 52 65 | 73 70 6f 6e 73 65 2e 53 |);....Re|sponse.S|
|00000370| 65 6e 64 54 65 78 74 28 | 22 3c 6f 70 74 69 6f 6e |endText(|"<option|
|00000380| 20 76 61 6c 75 65 3d 5c | 22 74 68 72 65 65 5c 22 | value=\|"three\"|
|00000390| 3e 4e 75 6d 62 65 72 20 | 54 68 72 65 65 22 29 3b |>Number |Three");|
|000003a0| 0d 0a 09 09 52 65 73 70 | 6f 6e 73 65 2e 53 65 6e |....Resp|onse.Sen|
|000003b0| 64 54 65 78 74 28 22 3c | 6f 70 74 69 6f 6e 20 76 |dText("<|option v|
|000003c0| 61 6c 75 65 3d 5c 22 66 | 6f 75 72 5c 22 3e 4e 75 |alue=\"f|our\">Nu|
|000003d0| 6d 62 65 72 20 46 6f 75 | 72 22 29 3b 0d 0a 09 09 |mber Fou|r");....|
|000003e0| 52 65 73 70 6f 6e 73 65 | 2e 53 65 6e 64 54 65 78 |Response|.SendTex|
|000003f0| 74 28 22 3c 2f 73 65 6c | 65 63 74 3e 3c 70 3e 22 |t("</sel|ect><p>"|
|00000400| 29 3b 0d 0a 09 09 52 65 | 73 70 6f 6e 73 65 2e 53 |);....Re|sponse.S|
|00000410| 65 6e 64 54 65 78 74 28 | 22 3c 69 6e 70 75 74 20 |endText(|"<input |
|00000420| 74 79 70 65 3d 73 75 62 | 6d 69 74 20 6e 61 6d 65 |type=sub|mit name|
|00000430| 3d 53 75 62 6d 69 74 20 | 76 61 6c 75 65 3d 53 75 |=Submit |value=Su|
|00000440| 62 6d 69 74 3e 22 29 3b | 0d 0a 09 09 52 65 73 70 |bmit>");|....Resp|
|00000450| 6f 6e 73 65 2e 53 65 6e | 64 54 65 78 74 28 22 3c |onse.Sen|dText("<|
|00000460| 2f 66 6f 72 6d 3e 22 29 | 3b 0d 0a 09 09 62 72 65 |/form>")|;....bre|
|00000470| 61 6b 3b 0d 0a 09 63 61 | 73 65 20 22 2f 73 75 62 |ak;...ca|se "/sub|
|00000480| 6d 69 74 2e 68 74 6d 6c | 22 3a 0d 0a 09 09 52 65 |mit.html|":....Re|
|00000490| 73 70 6f 6e 73 65 2e 53 | 65 6e 64 54 65 78 74 28 |sponse.S|endText(|
|000004a0| 22 54 68 61 6e 6b 73 20 | 66 6f 72 20 73 75 62 6d |"Thanks |for subm|
|000004b0| 69 74 74 69 6e 67 20 74 | 68 65 20 66 6f 72 6d 2e |itting t|he form.|
|000004c0| 3c 62 72 3e 22 29 3b 0d | 0a 09 09 52 65 73 70 6f |<br>");.|...Respo|
|000004d0| 6e 73 65 2e 53 65 6e 64 | 54 65 78 74 28 22 54 65 |nse.Send|Text("Te|
|000004e0| 73 74 45 64 69 74 20 77 | 61 73 20 5c 22 22 24 52 |stEdit w|as \""$R|
|000004f0| 65 71 75 65 73 74 2e 47 | 65 74 56 61 72 69 61 62 |equest.G|etVariab|
|00000500| 6c 65 28 22 54 65 73 74 | 45 64 69 74 22 29 24 22 |le("Test|Edit")$"|
|00000510| 5c 22 3c 70 3e 22 29 3b | 0d 0a 09 09 52 65 73 70 |\"<p>");|....Resp|
|00000520| 6f 6e 73 65 2e 53 65 6e | 64 54 65 78 74 28 22 59 |onse.Sen|dText("Y|
|00000530| 6f 75 20 73 65 6c 65 63 | 74 65 64 20 74 68 65 73 |ou selec|ted thes|
|00000540| 65 20 69 74 65 6d 73 3a | 3c 62 72 3e 22 29 3b 0d |e items:|<br>");.|
|00000550| 0a 09 09 66 6f 72 28 69 | 3d 52 65 71 75 65 73 74 |...for(i|=Request|
|00000560| 2e 47 65 74 56 61 72 69 | 61 62 6c 65 43 6f 75 6e |.GetVari|ableCoun|
|00000570| 74 28 22 73 65 6c 65 63 | 74 65 72 22 29 2d 31 3b |t("selec|ter")-1;|
|00000580| 69 3e 3d 30 3b 69 2d 2d | 29 0d 0a 09 09 09 52 65 |i>=0;i--|).....Re|
|00000590| 73 70 6f 6e 73 65 2e 53 | 65 6e 64 54 65 78 74 28 |sponse.S|endText(|
|000005a0| 22 5c 22 22 24 52 65 71 | 75 65 73 74 2e 47 65 74 |"\""$Req|uest.Get|
|000005b0| 56 61 72 69 61 62 6c 65 | 4e 75 6d 62 65 72 28 22 |Variable|Number("|
|000005c0| 73 65 6c 65 63 74 65 72 | 22 2c 20 69 29 24 22 5c |selecter|", i)$"\|
|000005d0| 22 3c 62 72 3e 22 29 3b | 0d 0a 09 09 62 72 65 61 |"<br>");|....brea|
|000005e0| 6b 3b 0d 0a 09 63 61 73 | 65 20 22 2f 69 6e 63 6c |k;...cas|e "/incl|
|000005f0| 75 64 65 2e 68 74 6d 6c | 22 3a 0d 0a 09 09 52 65 |ude.html|":....Re|
|00000600| 73 70 6f 6e 73 65 2e 53 | 75 62 73 74 28 22 76 61 |sponse.S|ubst("va|
|00000610| 72 69 61 62 6c 65 31 22 | 2c 20 22 54 68 69 73 20 |riable1"|, "This |
|00000620| 69 73 20 76 61 72 69 61 | 62 6c 65 20 31 22 29 3b |is varia|ble 1");|
|00000630| 0d 0a 09 09 52 65 73 70 | 6f 6e 73 65 2e 53 75 62 |....Resp|onse.Sub|
|00000640| 73 74 28 22 76 61 72 69 | 61 62 6c 65 32 22 2c 20 |st("vari|able2", |
|00000650| 22 54 68 69 73 20 69 73 | 20 76 61 72 69 61 62 6c |"This is| variabl|
|00000660| 65 20 32 22 29 3b 0d 0a | 09 09 52 65 73 70 6f 6e |e 2");..|..Respon|
|00000670| 73 65 2e 53 75 62 73 74 | 28 22 76 61 72 69 61 62 |se.Subst|("variab|
|00000680| 6c 65 33 22 2c 20 22 54 | 68 69 73 20 69 73 20 76 |le3", "T|his is v|
|00000690| 61 72 69 61 62 6c 65 20 | 33 22 29 3b 0d 0a 09 09 |ariable |3");....|
|000006a0| 52 65 73 70 6f 6e 73 65 | 2e 49 6e 63 6c 75 64 65 |Response|.Include|
|000006b0| 55 48 54 4d 28 22 74 65 | 73 74 69 6e 63 6c 75 64 |UHTM("te|stinclud|
|000006c0| 65 2e 68 74 6d 6c 22 29 | 3b 0d 0a 09 09 62 72 65 |e.html")|;....bre|
|000006d0| 61 6b 3b 0d 0a 09 64 65 | 66 61 75 6c 74 3a 09 09 |ak;...de|fault:..|
|000006e0| 0d 0a 09 09 52 65 73 70 | 6f 6e 73 65 2e 53 65 6e |....Resp|onse.Sen|
|000006f0| 64 54 65 78 74 28 22 48 | 65 6c 6c 6f 20 77 65 62 |dText("H|ello web|
|00000700| 21 20 20 54 68 65 20 63 | 75 72 72 65 6e 74 20 6c |! The c|urrent l|
|00000710| 65 76 65 6c 20 69 73 20 | 22 24 4c 65 76 65 6c 2e |evel is |"$Level.|
|00000720| 54 69 74 6c 65 29 3b 0d | 0a 09 09 52 65 73 70 6f |Title);.|...Respo|
|00000730| 6e 73 65 2e 53 65 6e 64 | 54 65 78 74 28 22 3c 62 |nse.Send|Text("<b|
|00000740| 72 3e 43 6c 69 63 6b 20 | 3c 61 20 68 72 65 66 3d |r>Click |<a href=|
|00000750| 5c 22 66 6f 72 6d 2e 68 | 74 6d 6c 5c 22 3e 74 68 |\"form.h|tml\">th|
|00000760| 69 73 20 6c 69 6e 6b 3c | 2f 61 3e 20 74 6f 20 67 |is link<|/a> to g|
|00000770| 6f 20 74 6f 20 61 20 74 | 65 73 74 20 66 6f 72 6d |o to a t|est form|
|00000780| 22 29 3b 0d 0a 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |");....b|reak;...|
|00000790| 7d 0d 0a 7d 0d 0a 00 | |}..}... | |
+--------+-------------------------+-------------------------+--------+--------+